package com.moli.iov.protocol.codec;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @Auther: zql
 * @Date: 2018/12/5 16:36
 */
public class DataWrapper implements Serializable {

    private static final long serialVersionUID = 7573242851726914166L;
    /**
     * 流水号
     */
    private String serialNo;

    private byte[] allData;

    /**
     * 命令
     */
    private Byte command;

   /**
     * 发送时间
     */
    private Date sendTime;

    public DataWrapper() {
    }

    public DataWrapper(String serialNo, byte[] allData, Date sendTime) {
        this.serialNo = serialNo;
        this.allData = allData;
        this.sendTime = sendTime;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public byte[] getAllData() {
        return allData;
    }

    public void setAllData(byte[] allData) {
        this.allData = allData;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Byte getCommand() {
        return command;
    }

    public void setCommand(Byte command) {
        this.command = command;
    }
}
